const mongoose = require('mongoose')
mongoose.connect('mongodb://localhost/test',{ useNewUrlParser: true ,useUnifiedTopology: true})
const db = mongoose.connection;
db.on('open',() => {
	console.log('mongodb connected')
})

module.exports = mongoose;
